<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>修改项目联系人</title>
<meta name="decorator" content="default" />
<script type="text/javascript">
$(function(){
	var validate = $("#inputForm").validate({
		submitHandler : function(form) {
			if ($("#conatct").val() == "") {
				alert("请选择联系人");
				return false;
			}
			loading('正在提交，请稍等...');
			form.submit();
		}
	})
})
</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li>
			<a href="#">修改项目联系人</a>
		</li>

	</ul>
	<br />
	<form:form id="inputForm" modelAttribute="project" action="${ctx}/project/projectcontact/changeContact" method="post" class="form-horizontal">

		<form:input type="hidden" path="id" value="${projectId}" />
		<sys:message content="${message}" />
		<div class="control-group">
			<label class="control-label">联系人:</label>
			<div class="controls">
				<form:select path="proContact" id="conatct" style="width:180px;">
					<form:option value="">请选择</form:option>
					<c:forEach items="${contact}" var="contact">
						<form:option value="${contact.id}">${contact.name}</form:option>
					</c:forEach>
				</form:select>
			</div>
		</div>
		<div class="form-actions">
			<input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存" />
			<input id="btnCancel" class="btn btn-primary" type="button" value="返 回" onclick="history.go(-1)" />
		</div>
	</form:form>
</body>
</html>